package com.ias.agdis_r.bean.user;

import java.util.HashMap;
import java.util.Map;

import com.ias.agdis_r.manager.DataBaseManager;
import com.ias.agdis_r.module.ParameterModel;

/**
 * 登陆员工信息
 * 
 * @author wanghu
 * 
 */
public class UserInfoBean {
	private String pwd = null;// 密码
	private String vnb = null;// 车号
	private String enb = null;// 员工号
	private String enm = null;// 用户名
	private String rli = null;// 员工的岗位
	private String rln = null;// 员工的岗位名称
	private String mfg = null;// 员工岗位标识
	private String rtp = null;// 员工岗位资源类型
	private String ttr = null;// 是否拥有转发的功能
	private String aodType = ""; // 进离港过滤条件
	private String mytnb = ""; // 保存当前执行的任务号
	private int currentIndex = -1;// 保存消息盒子当前页面
	private int taskCurrentIndex = -1; //保存任务列表的当前页面

	public static final String AOD_ALL = ""; // 过滤条件：所有
	public static final String AOD_ARRIVE = "A"; // 过滤条件：进港
	public static final String AOD_DEPARTURE = "D"; // 过滤条件：离港

	// private int flightSearchId = R.id.btn_fln;
	private boolean flightFilter = true;

	private Map<String, String> lockItemList = new HashMap<String, String>();
	private String rtl = null;//
	private boolean isadmin = false;// 是否为管理员

	public String getTtr() {
		return ttr;
	}

	public void setTtr(String ttr) {
		this.ttr = ttr;
	}

	public int getCurrentIndex() {
		return currentIndex;
	}

	public void setCurrentIndex(int currentIndex) {
		this.currentIndex = currentIndex;
	}


	public int getTaskCurrentIndex() {
		return taskCurrentIndex;
	}

	public void setTaskCurrentIndex(int taskCurrentIndex) {this.taskCurrentIndex = taskCurrentIndex;}

	public String getMytnb() {
		return mytnb;
	}

	public void setMytnb(String mytnb) {
		this.mytnb = mytnb;
	}

	public String getLockItemList(String key) {
		return lockItemList.get(key);
	}

	public void setLockItemList(String key, String value) {
		this.lockItemList.put(key, value);
	}

	public String getRtl() {
		return rtl;
	}

	public void setRtl(String _sRtl) {
		this.rtl = _sRtl;
	}

	public String getRtp() {
		return rtp;
	}

	public void setRtp(String _sRtp) {
		this.rtp = _sRtp;
	}

	public String getVnb() {
		return vnb;
	}

	public void setVnb(String vnb) {
		this.vnb = vnb;
	}

	public String getEnm() {
		return enm;
	}

	public void setEnm(String enm) {
		this.enm = enm;
	}

	public String getRli() {
		return rli;
	}

	public void setRli(String rli) {
		this.rli = rli;
	}

	public String getRln() {
		return rln;
	}

	public void setRln(String rln) {
		this.rln = rln;
	}

	public boolean getIsadmin() {
		return isadmin;
	}

	public void setIsadmin(boolean isadmin) {
		this.isadmin = isadmin;
	}

	public String getEnb() {
		return enb;
	}

	public void setEnb(String enb) {
		this.enb = enb;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPwd() {
		return pwd;
	}

	public String getMfg() {
		return mfg;
	}

	public void setMfg(String mfg) {
		this.mfg = mfg;
	}

	public boolean isFlightFilter() {
		return flightFilter;
	}

	public void setFlightFilter(boolean flightFilter) {
		this.flightFilter = flightFilter;
		// 保存IFA
		DataBaseManager.getInstance().insert(ParameterModel.T_FLIGHT_INFO,
				ParameterModel.IFA, this.flightFilter);
	}

	public String getAodType() {
		return aodType;
	}

	public void setAodType(String aodType) {
		this.aodType = aodType;
	}

}
